package com.ruoyi.points.domain;

import com.ruoyi.youyou.domain.SysYouYouUser;
import com.ruoyi.points.domain.Profile;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 积分记录对象 points_record
 *
 * @author jion
 * @date 2025-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PointsRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    //一对一
    private SysYouYouUser sysYouYouUser;

    private Profile profile;

    /** 记录ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 类型：收入/支出 */
    @Excel(name = "类型：收入/支出")
    private Integer type;

    /** 积分数 */
    @Excel(name = "积分数")
    private Integer amount;

    /** 记录标题 */
    @Excel(name = "记录标题")
    private String title;

    /** 记录描述 */
    @Excel(name = "记录描述")
    private String description;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer del;

    /** 用户名（非数据库字段，用于查询） */
    private transient String userName;
}
